package com.srlg.app.service;


import com.srlg.app.model.dto.UploadFileParamsDto;
import com.srlg.app.model.dto.UploadFileResultDto;
import com.srlg.app.model.po.MediaFiles;

public interface MediaFileService {
    /**
     * 上传文件
     *
     * @param companyId           机构id
     * @param uploadFileParamsDto 文件信息
     * @param localFilePath       文件本地路径
     * @return UploadFileResultDto
     */
    public UploadFileResultDto uploadFile(Long companyId, UploadFileParamsDto uploadFileParamsDto, String localFilePath);

    public MediaFiles addMediaFilesToDb(Long companyId, String fileMd5, UploadFileParamsDto uploadFileParamsDto, String bucket, String objectName);
}
